package com.ems.service.supers.questions;

import com.ems.pojo.questions.Grade;
import com.ems.pojo.questions.Subject;
import com.ems.pojo.questions.Tlevel;

import java.util.List;

/**
 * @Auther: 伟伟
 * @Date: 2019/10/16
 * @Description: 描述
 * @Version: 1.0
 */
public interface SubjectService {
    /**
     * 获取所有试题种类
     * @return
     */
     public List<Tlevel> getAllSubject();

     public void addLevel(Tlevel tlevel);

     public void deleteLevel(Tlevel tlevel);

     public void addGrade(Grade grade);

     public void deleteGrade(Grade grade);

     public void addSubject(Subject subject);

     public void deleteSubject(Subject subject);

    //查询指定学历下面的所有年级
    public List<Grade> findAllGrade(Tlevel tlevel);

    //查询指定年级下面的所有科目
    public List<Subject> findAllSubject(Grade grade);

    //获取所有的学历
    public List<Tlevel> findAllLevel();

    public void editLevel(Tlevel tlevel);

    public void editGrade(Grade grade);

    public void editSubject(Subject subject);

    public Subject getSubNameBySbId(int sb_id);
}
